package com.cf.service;

import com.cf.entity.Advert;
import com.cf.entity.Item;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AdvertService {
    //查询所有
    public PageInfo<Advert> selectAdvert(String iname, int pagenum, int pagesize);
    //逻辑删除
    public int deletetAdvert(long adid);
    //未通过
    public PageInfo<Advert> selectAdvertIsdel(String iname, int pagenum, int pagesize);
    //通过
    public int deletetAdvertIsdel(@Param("starttime") Date starttime, @Param("endtime") Date endtime, @Param("adid") long adid);
    //添加数据
    public int insertAdvert(Advert advert);
    //selectAdvertIsdel
    //真逻辑查询
    public PageInfo<Advert> selectByStatus(int pagenum, int pagesize);
    //根据广告表查询所有的项目
    public List<Item> selectItemByAdvert();
}